#include <iostream>
#include <string>
#include <vector>
#include <memory>
#include<deque>
using namespace std;

int main()
{
    // two shared pointers representing two persons by their name
    shared_ptr<string> pNico(new string("nico"));
    shared_ptr<string> pJutta(new string("jutta"));
    deque<shared_ptr<string>> deq;
    deq.push_back(pJutta);

    pJutta.reset(new string("aaa"));

    cout<<*deq.front()<<endl;

    cout<<*pJutta<<endl;


    return 0;
}
